using System;
using System.Runtime.Serialization;

namespace Sedna.Core.Persistence
{
	/// <summary>
	/// base exception that is thrown by the Sedna infrastructure in case of something goes wrong with the
	/// underlying Hibernate DAL. This might be infrastructure and configuration errors or this can also be 
	/// any business specific or data related errors. In the latter cases, developers are encouraged to subclass
	/// this generic class and be more specific about the nature of 
	/// the exception rather than just throwing the same exception type throughout the code.
	/// </summary>
    [Serializable]
    public class PstException : Exception
	{
		public PstException()
		{
		}

		public PstException(string message) : base(message)
		{
		}

		public PstException(string message, Exception innerException) : base(message, innerException)
		{
		}

        public PstException(SerializationInfo info, StreamingContext context)
            : base(info, context) {}
	    
	}
}
